package com.chenyilei.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 主要用于页面跳转的控制器
 *
 * @author chenyilei
 * @date 2019/03/14- 21:27
 */
@Controller
public class DispatcherController {

    @GetMapping("/index")
    public ModelAndView index(){
        return new ModelAndView("index");
    }


    @GetMapping("/userAnalysis")
    public ModelAndView userAnalysis(){
        return new ModelAndView("userAnalysis");
    }
}
